# $Id: PKGBUILD 149390 2012-02-07 13:05:41Z jgc $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=compositeproto
pkgver=0.4.2
pkgrel=2
pkgdesc="X11 Composite extension wire protocol"
arch=('any')
url="http://xorg.freedesktop.org/"
license=('custom')
depends=('fixesproto')
makedepends=('xorg-util-macros')
source=(${url}/releases/individual/proto/${pkgname}-${pkgver}.tar.bz2)
sha1sums=('aa7b5abcfd5bbfad7cb681ce89dc1d6e381e3044')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install

  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}
